package cn.cttic.order.api.domain.bo;

import cn.cttic.order.api.domain.BaseInstallOrderProcess;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 安装数据业务对象 base_install_order_process
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseInstallOrderProcess.class, reverseConvertGenerate = false)
public class BaseInstallOrderProcessBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 安装订单
     */
    @NotBlank(message = "安装订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private String installOrderId;

    /**
     * 工序分组名称
     */
    @NotBlank(message = "工序分组名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepGroupName;

    /**
     * 工序序号
     */
    @NotNull(message = "工序序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer stepIndex;

    /**
     * 工序名称
     */
    @NotBlank(message = "工序名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepName;

    /**
     * 安装步骤ID
     */
    @NotBlank(message = "安装步骤ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stepId;

    /**
     * 步骤文件ID
     */
    @NotBlank(message = "步骤文件ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ossId;

    /**
     * 步骤文件地址
     */
    @NotBlank(message = "步骤文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ossUrl;

    /**
     * 步骤文件ID
     */
    @NotBlank(message = "步骤文件ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fixOssId;

    /**
     * 步骤文件地址
     */
    @NotBlank(message = "步骤文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fixOssUrl;

    /**
     * 内业数据类型
     */
    @NotBlank(message = "内业数据类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String interiorDataType;

    /**
     * 内页数据
     */
    @NotBlank(message = "内页数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String interiorData;

    /**
     * 审核状态
     */
    @NotNull(message = "审核状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer auditStatus;

    /**
     * 审核人员
     */
    @NotBlank(message = "审核人员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditBy;

    /**
     * 审核意见
     */
    @NotBlank(message = "审核意见不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditReason;


}
